#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import signal


def kill_pid(pid):
    """强制kill某个pid"""
    try:
        a = os.kill(pid, signal.SIGKILL)
        print("已杀死pid为%s的进程,　返回值是:%s" % (pid, a))
        return 1
    except Exception:
        print("没有如此进程!!!")
        return 0
